package com.zhang.passer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 评论实体类对象
 */
@TableName("t_comment")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CommentDao {
    //主键自增
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String btype;//业务类别
    private Integer bid;//业务id
    private String content;//评论内容
    @JsonFormat(pattern = "YY:MM:DD:HH:mm",timezone="GMT+8")
    private Date commentDate;//评论时间
    private String nickname;//评论者名称
    private Integer state;//评论状态: 0 未审核 1 审核通过

    //不是数据库字段 评论者
    //private UserDo userDo;
}
